package com.htgd.gardenexpo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.htgd.gardenexpo.entity.GeConSocialCritique;
import com.htgd.gardenexpo.page.CritiqueQuery;
import com.htgd.gardenexpo.vo.GeConCritiqueVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author: 王秀田
 * @date: 2024/11/7 16:40
 * @description: TODO
 */
public interface GeConSocialCritiqueMapper extends BaseMapper<GeConSocialCritique> {

    List<GeConCritiqueVO> pageList(CritiqueQuery critiqueQuery);

    List<GeConCritiqueVO> getCritiqueReplyList(@Param("replyId") Long replyId, @Param("openId") String openId);
    @Update("UPDATE ge_con_social_critique SET num = num + 1 WHERE  id =#{replyId}")
    void updateNumById(@Param("replyId")Long replyId);
}
